<?php

namespace app\validate;

use share\validate\SceneValidate;

class CaptchaValidate extends SceneValidate{
    protected $rule = [      
        'state' => 'require|min:16',
        'encode' => 'require|min:30',
        'code' => 'require|alphaNum|max:8',
        'hash' => 'require|alphaNum|max:120',    
        'scene' => 'require|max:100',  
    ];    

    protected $scene = [
        'apply' => ['state', 'encode', 'code', 'hash', 'scene'],
    ];
}